package supermarket.go_shopping;

public class MyGoods{
	@Override
	public String toString() {
		return No + "\t\t" + name + "\t\t" + price+ "\t\t" + buyNum ;
	}
	private String No="";
	private String name="";
	private double price=0.0;
	private int buyNum=0;
	
	public String getNo() {
		return No;
	}
	public void setNo(String no) {
		No = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(int buyNum) {
		this.buyNum = buyNum;
	}
	public MyGoods(String no, String name, double price, int buyNum) {
		super();
		No = no;
		this.name = name;
		this.price = price;
		this.buyNum = buyNum;
	}
	
}
